package com.dd.common.dto.system.dept;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

/**
 * @author cheng
 */
@Schema(description = "部门查询DTO")
@Data
public class SysDeptQueryDTO implements java.io.Serializable{
    @Schema(description = "部门名称", example = "开发部")
    private String deptName;

    @Schema(description = "状态：1-正常，0-禁用", example = "1")
    @Range(min = 0, max = 1, message = "状态值只能是0或1")
    private Integer status;
}
